package org.hentor.generate.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 代码生成明细表
 * </p>
 *
 * @author wzd
 * @since 2023-06-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("generate_dev_detail")
@ApiModel(value="GenerateDevDetail对象", description="代码生成明细表")
public class GenerateDevDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "主表id")
    private String mainId;

    @ApiModelProperty(value = "列名")
    private String columnName;

    @ApiModelProperty(value = "原列名")
    private String oldColumnName;

    @ApiModelProperty(value = "字段类型")
    private String columnType;

    @ApiModelProperty(value = "字段长度")
    private Integer columnLength;

    @ApiModelProperty(value = "字段小数点")
    private Integer columnPoint;

    @ApiModelProperty(value = "默认值")
    private String columnDef;

    @ApiModelProperty(value = "字段备注")
    private String columnDesc;

    @ApiModelProperty(value = "是否为空")
    private Integer isNull;

    @ApiModelProperty(value = "是否主键")
    private Integer primaryKey;

    @ApiModelProperty(value = "排序")
    private Integer sortOrder;

    @ApiModelProperty(value = "是否为查询条件 1是 0否")
    private Integer isQuery;

    @ApiModelProperty(value = "是否在列表中显示 1是 0否")
    private Integer isShow;

    @ApiModelProperty(value = "是否为必填 1是 0否")
    private Integer isRequired;

    @ApiModelProperty(value = "视图组件")
    private String searchModule;

    @ApiModelProperty(value = "表单组件")
    private String formModule;

    @ApiModelProperty(value = "显示列宽 像素(px)")
    private Double columnWidth;

    @ApiModelProperty(value = "查询列宽 跨距(span)")
    private Double searchSpan;

}
